<?php
    include_once '../config.php';

    if ($_COOKIE['LOG'] == false) {
        header('Location: ../index.php');
    }

    include '../layout/header.php';
?>
<body>
    <div data-role="page">
        <div data-role="header" data-theme="b" class="ui-overlay-shadow">
            <h1>Projekte</h1>
            <a href="../index.php" data-role="button" data-icon="home" class="ui-btn-left" data-theme="a">Home</a>
            <a href="add.php" data-role="button" data-icon="add" class="ui-btn-right" data-theme="a">Add</a>
        </div>
        <div data-role="content" data-theme="c" style="min-height: 440px">
            <h2>Projektliste <?php echo date('Y'); ?></h2><br />
            <ul data-role="listview" data-inset="true" data-filter="true" data-filter-placeholder="Projekt suchen..." data-filter-theme="c">
            <?php
                include_once 'list/project_list.php';
            ?>
            </ul>
        </div>
        <div data-role="footer" data-theme="c">
            <table align="center">
                <tr>
                    <td><h4>&COPY; 2011 - Simon Zwicker</h4></td>
                    <td width="20px"></td>
                    <td><a href="../info.html" data-role="button" data-icon="info" data-theme="a" data-iconpos="notext">Info</a></td>
                </tr>
            </table>
        </div>
    </div>
</body>
</html>